package com.example.travelservlet.entity;

import com.example.travelservlet.idclass.CollectionEntertainmentPk;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import java.util.Date;

/**
 * @author hxy
 * @date 2022/11/8 11:49
 */
@Entity
@Data
@IdClass(CollectionEntertainmentPk.class)
public class CollectionEntertainment {
    @Id
    private String collectionId;
    @Id
    private String entertainmentId;
    @Column(name = "collect_Time")
    private Date collectionTime;
}
